package listfactory;

import factory.Factory;
import factory.Link;
import factory.Page;
import factory.Tray;

public class ListFactory extends Factory {

    @Override
    public Link makeLink(String caption, String url) {
        return new ListLink(caption, url);
    }

    @Override
    public Tray makeTray(String caption) {
        return new ListTray(caption);
    }

    @Override
    public Page makePage(String title, String author) {
        return new ListPage(title,author);
    }
}
